home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet Tools (InfoMagic)
/
Internet Tools.iso
/
dos_win
/
winsock
/
maillist
/
94-05.Z
/
94-05
/
000364_news@bigblue.oit.unc.edu_Sun May 25 18:05:01 1994.msg
< prev
next >
Wrap
Internet Message Format
|
1994-05-31
|
5KB
Received: from bigblue.oit.unc.edu by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.07) with SMTP
id AA29705; Wed, 25 May 1994 14:55:31 -0400
Received: by bigblue.oit.unc.edu (AIX 3.2/UCB 5.64/4.03)
id AA10137; Wed, 25 May 1994 14:33:19 -0400
Received: from GATEWAY by bigblue with netnews
for winsock@sunsite.unc.edu (winsock@sunsite.unc.edu)
To: winsock@sunsite.unc.edu
Date: 25 May 1994 18:05:01 GMT
From: larsenc@lcs.com (Craig Larsen)
Message-Id: <2s040d$6uf@herald.indirect.com>
Organization: Larsen Consulting and Sales (602) 548-1542
Sender: ses
Subject: Winsock Application FAQ Available
If you are trying to find a certain Winsock Application, you need the
Winsock Application FAQ.
Send email to: info@lcs.com Subject: FAQ
or
Point your WWW client at: http://www.ramp.com/~lcs
Larsen Consulting and Sales
Hard Drives, CD-ROM Drives, Modems and More !
From news@bigblue.oit.unc.edu Wed May 25 14:55:35 1994
Received: from bigblue.oit.unc.edu by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.07) with SMTP
id AA29729; Wed, 25 May 1994 14:55:35 -0400
Received: by bigblue.oit.unc.edu (AIX 3.2/UCB 5.64/4.03)
id AA32488; Wed, 25 May 1994 14:42:27 -0400
Received: from GATEWAY by bigblue with netnews
for winsock@sunsite.unc.edu (winsock@sunsite.unc.edu)
To: winsock@sunsite.unc.edu
Date: Wed, 25 May 1994 14:07:58
From: GREG_KAISEN@quickmail.cis.yale.edu (Greg Kaisen)
Message-Id: <GREG_KAISEN.23.000E226E@QM.YALE.EDU>
Organization: Yale University
Sender: ses
Subject: Microsoft Daytona TCP-IP name resolution ques.
Using the Microsoft "Daytona TCP/IP" and WFW 3.11 and ODI drivers..... I find
that if I telnet to a local host by only specifying the Host name (ie:YALEVM)
, I get rejected saying "Unable to resolve hostname" however if I telnet to
(ie: YALEVM.YCC.YALE.EDU) i am able to connect.
I had thought that by configuring the Domain Name Servers, and by specifying
the default domain name (ie: YCC.YALE.EDU) - which I did after "adding a
protocol" I would be able to connect via the Hostname only?
This is how the Trumpet Winsock handles things, what might I be missing?
should there be some sort of HOSTS file in the Windows directory?
-thanks, Greg_Kaisen@QUICKMAIL.YALE.EDU
From news@bigblue.oit.unc.edu Wed May 25 18:15:54 1994
Received: from bigblue.oit.unc.edu by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.07) with SMTP
id AA29762; Wed, 25 May 1994 14:55:44 -0400
Received: by bigblue.oit.unc.edu (AIX 3.2/UCB 5.64/4.03)
id AA21742; Wed, 25 May 1994 14:42:56 -0400
Received: from GATEWAY by bigblue with netnews
for winsock@sunsite.unc.edu (winsock@sunsite.unc.edu)
To: winsock@sunsite.unc.edu
Date: Wed, 25 May 1994 18:15:54 GMT
From: gsegalli@ic1d.harris.com (Greg Segallis)
Message-Id: <CqDEqJ.DqA@news.ess.harris.com>
Organization: Harris, GCSD
Sender: ses
Subject: winsock programming problem
I am just starting out with winsock programming and I'm having problems.
At this point I am just trying to establish a connection with a host
(IP = 130.41.1.250). I am using the following pascal code and I get
an error # 10047 on the bind command (I get the same error if I replace
the bind with a connect). This error, WSAEAFNOSUPPORT, means the
specified address family is not supported by this protocol. I have
verified that several other working winsock apps doexactly the same
winsock calls with the same parameters to the the socket call. I suspect
there is something wrong with the name parameter I am supplying to bind.
The pascal header is a little different than the C header concerning the
'sockaddr' format - the pascal just shows it as a family followed by 14
bytes of data. I am filling them like the 'sockaddr_in' format - a
2 byte port, 4 byte IP address, 8 bytes of ZERO (?).
Thanks for any help you can give.
Greg
program wsocktst;
uses winsock, wincrt;
var
i: integer;
wsadata: lpwsadata;
skt: socket;
socka: sockaddr;
psocka: psockaddr;
begin
socka.sa_family := AF_INET;
socka.sa_data[0] := #25; {these next two bytes should be the SMTP port}
socka.sa_data[1] := #0; { (I also tried 119)}
socka.sa_data[2] := #130; {the next four bytes are the IP address}
socka.sa_data[3] := #41;
socka.sa_data[4] := #1;
socka.sa_data[5] := #250;
for i := 6 to 13 do {don't know what these are for}
socka.sa_data[i] := #0;
i := wsastartup(257,@wsadata);
writeln('WSAStartup = ',i); {this gives me a return code of 0, so far so good}
skt := _socket(2,1,0);
writeln('Socket = ',skt); {this gives me a return code of 1, still OK}
i := bind(skt,socka,16);
{ i := connect(skt,socka,16); both give the same result}
writeln('Bind = ',i); {this gives me an error response of -1}
if i <> 0 then
i := wsagetlasterror;
writeln('Bind Error = ',i); {the actual error code is 10047}
WSACleanup;
end.